package com.tboss.am.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tboss.am.dao.AMDao;
import com.tboss.am.dto.AMDto;
import com.tboss.am.dto.ResourceCollectorDto;

@Service("amService")
public class AMService {
	
	@Autowired private AMDao amDao;

	// List<AMDto> list = amDao.selectAll();
	
	public List<AMDto> selectAll(){
		return this.amDao.selectAll();		
	}
	
//	public List<ResourceCollectorDto> selectRscList(int svrNum){
//		return this.amDao.selectRscList(svrNum);
//	}

	public List<ResourceCollectorDto> selectRscList(){
		return this.amDao.selectRscList();
	}

	public List<ResourceCollectorDto> selectSvrRscList(int svrNum){
		return this.amDao.selectSvrRscList(svrNum);
	}
	
	public ResourceCollectorDto selectMaxOne(int svrNum){
		return this.amDao.selectMaxOne(svrNum);
	}
	
	/*
	public void insert(ServerDto serverDto){
		this.serverDao.insert(serverDto);
	}
	
	public void update(ServerDto serverDto){
		this.serverDao.update(serverDto);
	}
	
	public void delete(int svrNum){
		this.serverDao.delete(svrNum);
	}
	*/
}
